<?php
require('function.php');
function getStatus($id) {
	$rs = fetchUrl('http://www.huomao.com/' . $id);
	preg_match('/is_live = "(\d+)"/', $rs, $matches);
	return $matches[1];
}
//含义：1为正在直播，0为未开播
$status = getStatus(846166);
echo $status;
echo "\n";
$status = getStatus(11729);
echo $status;
echo "\n";